home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.4 Applications 1997 August / SGI IRIX 6.4 Applications 1997 August.iso / dist / print.idb / usr / share / catman / p_man / cat4 / printcap.z / printcap
Encoding:
Text File  |  1997-07-30  |  10.9 KB  |  265 lines

  1.  
  2.  
  3.  
  4. PPPPRRRRIIIINNNNTTTTCCCCAAAAPPPP((((4444))))                     PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                     PPPPRRRRIIIINNNNTTTTCCCCAAAAPPPP((((4444))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      printcap - BSD printer capability data base
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      /etc/printcap
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _P_r_i_n_t_c_a_p is a data base used to describe line printers.  The spooling
  16.      system accesses the _p_r_i_n_t_c_a_p file every time it is used, allowing dynamic
  17.      addition and deletion of printers.  Each entry in the data base is used
  18.      to describe one printer.  This data base may not be substituted for,
  19.      because it may allow accounting to be bypassed.
  20.  
  21.      The default printer is normally _l_p, though the environment variable
  22.      PRINTER may be used to override this.  Each spooling utility supports an
  23.      option, ----PPPP_p_r_i_n_t_e_r, to allow explicit naming of a destination printer.
  24.  
  25. CCCCAAAAPPPPAAAABBBBIIIILLLLIIIITTTTIIIIEEEESSSS
  26.      NNNNaaaammmmeeee   TTTTyyyyppppeeee  DDDDeeeeffffaaaauuuulllltttt             DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  27.      af     str   NULL                name of accounting file
  28.      br     num   none                if lp is a tty, set the baud rate (ioctl call)
  29.      cf     str   NULL                cifplot data filter
  30.      df     str   NULL                tex data filter (DVI format)
  31.      du     num   1                   default uid under which filters are run
  32.      fc     num   0                   if lp is a tty, clear flag bits (see FLAG BITS below)
  33.      ff     str   ``\f''              string to send for a form feed
  34.      fo     bool  false               print a form feed when device is opened
  35.      fs     num   0                   like `fc' but set bits (see FLAG BITS below)
  36.      gf     str   NULL                graph data filter
  37.      hl     bool  false               print the burst header page last
  38.      ic     bool  false               driver supports (non standard) ioctl
  39.                                       to indent printout
  40.      if     str   NULL                name of text filter which does accounting
  41.      lf     str   ``/dev/console''    error logging file name
  42.      lo     str   ``lock''            name of lock file
  43.      lp     str   ``/dev/lp''         device name to open for output
  44.      mx     num   1000                maximum file size (in BUFSIZ blocks),
  45.                                       zero = unlimited
  46.      nd     str   NULL                next directory for list of queues (unimplemented)
  47.      nf     str   NULL                ditroff data filter (device independent troff)
  48.      of     str   NULL                name of output filtering program
  49.      pc     num   200                 price per foot or page in hundredths of cents
  50.      pl     num   66                  page length (in lines)
  51.      pw     num   132                 page width (in characters)
  52.      px     num   0                   page width in pixels (horizontal)
  53.      py     num   0                   page length in pixels (vertical)
  54.      rf     str   NULL                filter for printing FORTRAN style text files
  55.      rg     str   NULL                restricted group. Only members of group
  56.                                       allowed access
  57.      rm     str   NULL                machine name for remote printer
  58.      rp     str   ``lp''              remote printer name argument
  59.      rs     bool  false               restrict remote users to those with local accounts
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. PPPPRRRRIIIINNNNTTTTCCCCAAAAPPPP((((4444))))                     PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                     PPPPRRRRIIIINNNNTTTTCCCCAAAAPPPP((((4444))))
  71.  
  72.  
  73.  
  74.      rw     bool  false               open the printer device for reading and writing
  75.      sb     bool  false               short banner (one line only)
  76.      sc     bool  false               suppress multiple copies
  77.      sd     str   ``/usr/spool/lpd''  spool directory
  78.      sf     bool  false               suppress form feeds
  79.      sh     bool  false               suppress printing of burst page header
  80.      st     str   ``status''          status file name
  81.      tf     str   NULL                troff data filter (cat phototypesetter)
  82.      tr     str   NULL                trailer string to print when queue empties
  83.      vf     str   NULL                raster image filter
  84.      xc     num   0                   if lp is a tty, clear local mode bits (tty (4))
  85.      xs     num   0                   like `xc' but set bits
  86.  
  87.      If the local line printer driver supports indentation, the daemon must
  88.      understand how to invoke it.
  89.  
  90. FFFFLLLLAAAAGGGG BBBBIIIITTTTSSSS
  91.      In order to provide compatibility with BSD-based systems, the flag bits
  92.      supplied as part of the _f_c and _f_s printcap entries are based on
  93.      Berkeley's sgtty structure. The following table summarizes the meanings
  94.      of these bits (note that all values are in octal):
  95.           ALLDELAY 0177400 Delay algorithm selection
  96.           BSDELAY  0100000 Select backspace delays
  97.           BS0      0       No delay
  98.           BS1      0100000 0.10 second delay
  99.           VTDELAY  0040000 Select form-feed and vertical-tab delays:
  100.           FF0      0       No delay
  101.           FF1      0040000 2.0 second delay
  102.           CRDELAY  0030000 Select carriage-return delays:
  103.           CR0      0       No delay
  104.           CR1      0010000 Delay dependent on current column.
  105.           CR2      0020000 0.10 second delay
  106.           CR3      0030000 0.15 second delay
  107.           TBDELAY  0006000 Select tab delays:
  108.           TAB0     0       No delay
  109.           TAB1     0002000 Delay dependent on current column.
  110.           TAB2     0004000 0.10 second delay
  111.           XTABS    0006000
  112.           NLDELAY  0001400 Select new-line delays:
  113.           NL0      0       No delay
  114.           NL3      0001400 0.15 second delay
  115.           EVENP    0000200 Even parity allowed on input
  116.           ODDP     0000100 Odd parity allowed on input
  117.           RAW      0000040 Raw mode: wake up on all characters, 8-bit interface
  118.           CRMOD    0000020 Map CR into LF; output LF as CR-LF
  119.           ECHO     0000010 Echo (full duplex)
  120.           LCASE    0000004 Map upper case to lower on input and lower to upper on output
  121.           CBREAK   0000002 Return each character as soon as typed
  122.           TANDEM   0000001 Automatic flow control
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. PPPPRRRRIIIINNNNTTTTCCCCAAAAPPPP((((4444))))                     PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                     PPPPRRRRIIIINNNNTTTTCCCCAAAAPPPP((((4444))))
  137.  
  138.  
  139.  
  140. FFFFIIIILLLLTTTTEEEERRRRSSSS
  141.      The _l_p_d(1M) daemon creates a pipeline of _f_i_l_t_e_r_s to process files for
  142.      various printer types.  The filters selected depend on the flags passed
  143.      to _l_p_r(1).  The pipeline set up is:
  144.  
  145.           -p   pr | if   regular text + _p_r(1)
  146.           none if        regular text
  147.           -c   cf        cifplot
  148.           -d   df        DVI (tex)
  149.           -g   gf        _p_l_o_t(3)
  150.           -n   nf        ditroff
  151.           -f   rf        Fortran
  152.           -t   tf        troff
  153.           -v   vf        raster image
  154.  
  155.      The iiiiffff filter is invoked with arguments:
  156.  
  157.           _i_f [ ----cccc ] ----wwwwwidth ----lllllength ----iiiiindent ----nnnn login ----hhhh host acct-file
  158.  
  159.      The ----cccc flag is passed only if the ----llll flag (pass control characters
  160.      literally) is specified to _l_p_r.  _W_i_d_t_h and _l_e_n_g_t_h specify the page width
  161.      and length (from ppppwwww and ppppllll respectively) in characters.  The ----nnnn and ----hhhh
  162.      parameters specify the login name and host name of the owner of the job
  163.      respectively.  _A_c_c_t-_f_i_l_e is passed from the aaaaffff _p_r_i_n_t_c_a_p entry.
  164.  
  165.      If no iiiiffff is specified, ooooffff is used instead, with the distinction that ooooffff
  166.      is opened only once, while iiiiffff is opened for every individual job.  Thus,
  167.      iiiiffff is better suited to performing accounting.  The ooooffff is only given the
  168.      _w_i_d_t_h and _l_e_n_g_t_h flags.
  169.  
  170.      All other filters are called as:
  171.  
  172.           _f_i_l_t_e_r ----xxxxwidth ----yyyylength ----nnnn login ----hhhh host acct-file
  173.  
  174.      where _w_i_d_t_h and _l_e_n_g_t_h are represented in pixels, specified by the ppppxxxx and
  175.      ppppyyyy entries respectively.
  176.  
  177.      All filters take _s_t_d_i_n as the file, _s_t_d_o_u_t as the printer, may log either
  178.      to _s_t_d_e_r_r or using _s_y_s_l_o_g(3), and must not ignore SIGINT.
  179.  
  180. LLLLOOOOGGGGGGGGIIIINNNNGGGG
  181.      Error messages generated by the line printer programs themselves (that
  182.      is, the _l_p* programs) are logged by _s_y_s_l_o_g(3) using the _L_P_R facility.
  183.      Messages printed on _s_t_d_e_r_r of one of the filters are sent to the
  184.      corresponding llllffff file.  The filters may, of course, use _s_y_s_l_o_g
  185.      themselves.
  186.  
  187.      Error messages sent to the console have a carriage return and a line feed
  188.      appended to them, rather than just a line feed.
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. PPPPRRRRIIIINNNNTTTTCCCCAAAAPPPP((((4444))))                     PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                     PPPPRRRRIIIINNNNTTTTCCCCAAAAPPPP((((4444))))
  203.  
  204.  
  205.  
  206. CCCCOOOOMMMMPPPPAAAATTTTIIIIBBBBIIIILLLLIIIITTTTYYYY NNNNOOOOTTTTEEEESSSS
  207.      In an attempt to provide compatibility with existing BSD printcap
  208.      entries, the SGI version of the _l_p_d spooler emulates the output bits in
  209.      the BSD tty flag word (defined in the BSD include file <sgtty.h>) via
  210.      IRIX termio.
  211.  
  212. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  213.      lpc(1M), lpd(1M), pac(1M), lpr(1), lpq(1), lprm(1)
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.